const licheng = "li cheng da xiao";
const newArr = [];
const arr = licheng.split(" ");
console.log(arr);

for(let i = 0 ;i<arr.length ; i ++){
    console.log(arr[i][0].toUpperCase()); 
    console.log(arr[i].slice(1)) 
    const res = arr[i][0].toUpperCase() +arr[i].slice(1)
    newArr.push(res)
}

console.log(newArr);


const b= [1,2,,45,6,78,9]
console.log(b);
